<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
	    <link rel="stylesheet" href="front/css/normal.css">
        <link rel="stylesheet" href="front/css/addBox.css">
        <link rel="stylesheet" href="front/content/css/projectAdm.css">
	</head>
    <body  style="box-shadow: none">
				<input type="hidden" name="filiale_account_id" id="filiale_account_id" value="${pd.filiale_account_id}"/>
				<input type="hidden" name="task_id" id="taskId" value="${act.taskId}"/>
				<input type="hidden" name="procIns_id" id="procInsId" value="${act.procInsId}"/>
				<input type="hidden" name="flag" id="flag" value="${act.flag}"/>
				<input type="hidden" name="task_def_key" id="task_def_key" value="${act.taskDefKey}"/>
			<div class="boxStyle">
				<ul>
					<p class="con-title">申请银行开户</p>
					 <div id="histoicFlowList">
						<table class="table table-striped table-bordered table-condensed">
						<thead>
							<tr>
								<th>申请人:</th>
								<th>申请单位:</th>
								<th>联系电话:</th>
								<th>开户类型:</th>
								<th>开户材料:</th>
						   </tr>
						</thead>
						<tbody>
						    <tr>
						        <td>${pd.filiale_account_applyman}</td>
						        <td>${pd.filiale_name}</td>
						        <td>${pd.filiale_account_phone}</td>
						      <c:if test="${pd.filiale_account_type eq 1}">
						        <td >基本用户</td>
						      </c:if>
						      <c:if test="${pd.filiale_account_type eq 2}">
						        <td >一般用户</td>
						      </c:if>
						        <td>${pd.filiale_account_needdata}</td>
						    </tr>
						</tbody>
						</table>
					</div>
			    </ul>
			      <p class="btn-box">
                         <button onclick="javascript:history.back(-1);">返回</button>
                   </p>
			</div> 
<%--  <div style="height: 20px;"></div>
			  <div class="boxStyle">    
			   	<ul>
			   	    <p class="con-title">流转信息</p>
					  <div id="histoicFlowList">
						<table class="table table-striped table-bordered table-condensed">
							<tr><th>执行环节</th><th>执行人</th><th>开始时间</th><th>结束时间</th><th>提交意见</th><th>任务历时</th></tr>
							<c:forEach items="${varList}" var="act">
								<tr>
									<td>${act.histIns.activityName}</td>
									<td>${act.assigneeName}</td>
									<td><fmt:formatDate value="${act.histIns.startTime}" type="both"/></td>
									<td><fmt:formatDate value="${act.histIns.endTime}" type="both"/></td>
									<td style="word-wrap:break-word;word-break:break-all;">${act.comment}</td>
									<td>${act.durationTime}</td>
								</tr>
							</c:forEach>
						</table>
					</div>
			</ul>		
			        <p class="btn-box">
                         <button onclick="javascript:history.back(-1);">返回</button>
                   </p>
		</div>			 --%>
		          <script src="front/js/jquery-2.0.3.min.js"></script>
	              <script src="front/js/index.js"></script>
				  <script type="text/javascript">
				function agree(){
					$('#flag').val('yes');
					$.ajax({
						type: "POST",
						url: $("#Form").attr("action"),
				    	data: $("#Form").serialize(),
						dataType:'json',
						cache: false,
						success: function(data){
							if(data.msg == "success"){
								alert("审批成功!");
								location.href = "<%=basePath%>acttask/todo.do";
							}
						}
					});
				}
				
				function noagree(){
					$('#flag').val('no');
					$.ajax({
						type: "POST",
						url: $("#Form").attr("action"),
				    	data: $("#Form").serialize(),
						dataType:'json',
						cache: false,
						success: function(data){
							if(data.msg == "success"){
								alert("驳回成功!");
								location.href = "<%=basePath%>acttask/todo.do";
							}
						}
			});
		}
		$(function() {
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			//日期框
			$('.date-picker').datepicker();
		});
		
		</script>
</body>
</html>